<script type="text/javascript">
function confirmExportCc()
{
	$("#exportConfirm").html("<img src='images/loading.gif' />");
	$.ajax({
		url:'sellerExportCcDie.php',
		type:'GET',
		data:"confirm=1",
		cache: false,
		success: function(j){
		$("#exportConfirm").html("done");
	  	}
	});	
}
</script>
<?php
if(!empty($getCcDie))
{
	?>
	<table border="1" width="100%">
	<tr class="classmenu">
	<td>
	CC Die Report
	</td> <td id="exportConfirm">
	<p onclick="javascript:confirmExportCc();">Xac Nhan Da Copy Cc</p>
	</td>
	</tr>
	</table>
	<textarea rows="50" cols="140">
	<?php 
	foreach($getCcDie as $ccDie)
	{
		$arrCcId[]=$ccDie['ccid'];
		$exM=$ccDie['exmonth'];
		$exY=$ccDie['exyear'];
		$ccv=$ccDie['ccv2'];
		$ccNum=$ccDie['ccnumber'];
		$ccNumber=hash::unhash($ccNum, $exM, $exY, $ccv);
		$ccLine=$ccDie['firstname']."|".$ccDie['lastname']."|".$ccNumber."|".$ccDie['exmonth']."|".$ccDie['exyear']."|".$ccDie['ccv2']."|".$ccDie['address']."|".$ccDie['city']."|".$ccDie['state']."|".$ccDie['zip']."|".$ccDie['phone']."|".$ccDie['country']."\n";
		echo $ccLine;
	}
	$_SESSION["ccIdDie"]=$arrCcId;
	?>
		</textarea>
	<?php
}
else
{
	echo "no ccdie";
}

?>